<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWyTicketMerchantAuditTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wy_ticket_merchant_audit', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 50)->comment('申请人姓名');
            $table->string('mobile', 20)->comment('申请人手机号码');
            $table->integer('age')->comment('申请人年龄');
            $table->tinyInteger('sex')->comment('1 .男 2. 女');
            $table->string('position', 50)->comment('申请人职业');
            $table->integer('province_id')->comment('省id');
            $table->integer('city_id')->comment('市id');
            $table->integer('region_id')->comment('区id');
            $table->tinyInteger('status')->default(0)->comment('订单处理状态 0待处理，1. 已联系 2. 工厂考察 3. 明确加盟 4. 签订合同 5. 完成建店（需更新财务表状态）');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wy_ticket_merchant_audit');
    }
}
